/*
Copyright 2008, 2009 Joonas Lehtolahti

This file is part of Shared Datatypes and Utilities.

Shared Datatypes and Utilities is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Shared Datatypes and Utilities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with Shared Datatypes and Utilities.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _HELPERS_H_
#define _HELPERS_H_

#include "shared_def.h"
#include "non0string.h"
#include "linkedlist.h"

/* HELPER FUNCTIONS */
DLLEXPORT(non0string*)    char2non   (const unsigned char*);
DLLEXPORT(unsigned char*) non2char   (non0string* );
DLLEXPORT(LinkedList*)    SplitString(non0string*, const char*);
DLLEXPORT(void)           EvalEscapes(char*,char* );
DLLEXPORT(unsigned int)   hex2int    (char*, int);
DLLEXPORT(non0string*)    shorten_to (non0string *original, size_t max_length);

DLLEXPORT(void) DumpObject(void*,size_t);

#endif
